<!--
 * @Author: yan_hai_dong 891236760@qq.com
 * @Date: 2022-10-21 16:26:47
 * @LastEditors: yan_hai_dong 891236760@qq.com
 * @LastEditTime: 2022-10-24 11:09:53
 * @FilePath: \app\src\views\three\Layout.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <div>
    <van-nav-bar
      :title="title || 'three'"
      left-text="返回"
      left-arrow
      fixed
      placeholder
      safe-area-inset-top
      @click-left="
        () => {
          $router.go(-1);
        }
      "
    />
    <router-view />
  </div>
</template>
  
  <script>
export default {
  data() {
    return {
      title: "",
    };
  },
  watch: {
    $route: {
      handler({ meta: { title } }) {
        this.title = title;
      },
      immediate: true,
    },
  },
};
</script>
  
  <style lang="less" scoped>
</style>